﻿@{
    ViewBag.Title = "小杨工具库";
    Layout = "~/Views/Shared/_MobileLayout.cshtml";
    var userid = Request.QueryString["userid"].xTrim();
    if (string.IsNullOrWhiteSpace(userid))
    {
        Html.RenderPartial("Result", new YYS.ResultModel() { IsPart = 1, Icon = 1, Msg = "加载中，请稍后...", AutoURL = YYS.DefaultValue.wxUrl });
        return;
    }
}
<div id="wxlogin" v-cloak class="flex-column hidden bg-light" style="max-width:800px; margin:0 auto;">
    <div class="flex-column-fill">
        <pc-turtle></pc-turtle>
    </div>
    <div class="padding-tb-30">
        <van-cell-group :border="false" inset>
                <van-field v-model="account"                          
                           clearable
                           label="账号"
                           icon="question-o"
                           placeholder="请输入账号"></van-field>

                <van-field v-model="pwd"
                           type="password"
                           label="密码"
                           placeholder="请输入密码"
                           :border="false"></van-field>
            </van-cell-group>
        <div class="padding-15">
                <van-button round block type="info" v-on:click="login">绑定账号</van-button>
            </div>
    </div>

</div>

@section style{
    <style>
    </style>
}

@section body{
    @System.Web.Optimization.Scripts.Render("~/Content/wx/login?rd=" + DateTime.Now.ToString())
    <script type="text/javascript">
    window.$jscript.fn.wxlogin.ready({
        key: '@(userid)',
        link: '@(Url.Content("~/"))',
        components: { wxPage: '@(this.vueComponent("~/Views/pc/My/Component/pc.turtle.cshtml").xToBase64())' },
    });
    </script>
}

